@ECHO OFF
SET ServerName=What server without instance name
SET ServerNameWithInstance=What server with instance name (if applicable)

sqlcmd /S %ServerNameWithInstance% /E /i".\BuildFolders.sql"

REM dtutil /Q /DestS %ServerName% /Fi packagename.dtsx /C SQL;/NCLSQLInventory/Master/PackageName
REM dtutil /Q /DestS %ServerName% /Fi packagename.dtsx /C SQL;/NCLSQLInventory/Collection/PackageName
dtutil /Q /DestS %ServerName% /Fi DiscoverMSInstalledComponents.dtsx /C SQL;/NCLSQLInventory/Collection/DiscoverMSInstalledComponents
dtutil /Q /DestS %ServerName% /Fi GetMachineInfo.dtsx                /C SQL;/NCLSQLInventory/Collection/GetMachineInfo
dtutil /Q /DestS %ServerName% /Fi GetServerInfo.dtsx                 /C SQL;/NCLSQLInventory/Collection/GetServerInfo
dtutil /Q /DestS %ServerName% /Fi SetMSSQLMemory.dtsx                /C SQL;/NCLSQLInventory/Collection/SetMSSQLMemory
